home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_exitsecret.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  60 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_Gem2Wall.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     damaged
  13.     
  14.     thing       shovel
  15.     thing       bucket
  16.     thing       tnt
  17.     
  18.     surface     front       mask=0x40
  19.     surface     back
  20.     
  21.     template    bomb=+gen_exp_stone     local
  22.     
  23.     sound       mus_Cue=mus_gen_magic1.wav      local
  24.     
  25.     int         done=0      local
  26.     
  27. end
  28.  
  29. # ========================================================================================
  30. code
  31.       
  32. damaged:
  33.  
  34.     # front face is damaged by explosion
  35.     if((GetSenderRef() == front) && (GetParam(1) == 0x4) && (done == 0))
  36.     {
  37.         CreateThingAtPos(bomb, GetSurfaceSector(front), GetSurfaceCenter(front), VectorSet(0, 0, 0));
  38.         
  39.         SetFaceGeoMode(front, 0);       # no draw
  40.         SetFaceGeoMode(back, 0);
  41.         SetAdjoinFlags(front, 2);       # move
  42.         SetAdjoinFlags(back, 2);
  43.         
  44.         DestroyThing(shovel);
  45.         DestroyThing(bucket);
  46.         DestroyThing(tnt);
  47.         
  48.         done = 1;
  49.         
  50.         Sleep(2.0);
  51.         PlaySoundLocal(mus_Cue, 1.0, 0.0, 0x0, 0);
  52.     }
  53.     
  54.     return;        
  55.         
  56. # ========================================================================================
  57.  
  58. end
  59.  
  60.